using System;
using System.Windows.Forms;

namespace Deloitte
{
	public class ExceptionHandling
	{
		public static void ShowMessageBox(Exception ex)
		{
			System.Windows.Forms.MessageBox.Show(ex.ToString());//"Error Source: " + ex.Source.ToString() + "\r\rError Summary: " + ex.Message.ToString() + "\r\rError Detail:" + ex.ToString());			
		}
	}
    public class ExceptionWrapper
    {
        public ExceptionWrapper(Exception ex) { this.Exception = ex; this.Message = ex.Message; }
        string _message;

        public string Message
        {
            get { return _message; }
            set { _message = value; }
        }
        Exception _exception;

        public Exception Exception
        {
            get { return _exception; }
            set { _exception = value; }
        }
    }
}